﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using TalksLog.Abstraction.Repositories;
using TalksLog.DapperRepository;

namespace TalksLog.UI.InjectingExt
{
    internal static class RepositoryInjectingExt
    {
        internal static void AddDapperRepositories(this IServiceCollection services, IConfiguration config)
        {
            services.AddScoped<AccountRepositoryBase>(p=> new AccountRepository(config["Databases:Basic"]));
        }
    }
}
